package esiag.pds.beans;

import java.rmi.RemoteException;

public class Notification extends Information {

	private static final long serialVersionUID = -6437566693352303850L;
	Description description;

	public Notification() throws RemoteException {
		description=new Description();
	}
	
	public Description getDescription() {
		return description;
	}

	public void setDescription(Description description) {
		this.description = description;
	}
	
	@Override
	public String toString() {
		return "Information Notification [date=" + date + ", train=" + train + ", station="
				+ station + ", ligne=" + ligne + "] " + description.toString();
	}
	
	public void setDescription(String desc){

		description.setDescription(desc);
	}
}
